package com.easy.service;

import com.easy.dao.IVipDao;
import com.easy.entity.Staff;
import com.easy.entity.Vip;
import com.easy.utils.DigestPassUtil;
import com.easy.utils.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName VipService
 * @Description TODO
 * @Author 周轩霆
 * @Date 2022/5/27 16:37
 **/
@Service
public class VipService {
    @Autowired
    IVipDao iVipDao;

    public int getCount(Map params) {


        return iVipDao.getCount(params);
    }

    public List<Vip> getList(Map params) {

        //处理分页参数
        //start=(page-1)*limit

        PageUtil.start(params);
        return iVipDao.getList(params);


    }

    public int del(Map params) {

        return iVipDao.del(params);
    }

    public int add(Map params) {

        return iVipDao.add(params);
    }

    public int edit(Map params) {

        return iVipDao.edit(params);
    }
}
